Make passed-in argument 'const'.
authorElliot Lee <sopwith@src.gnome.org>
Mon, 14 Feb 2000 20:06:23 +0000 (20:06 +0000)
committerElliot Lee <sopwith@src.gnome.org>
Mon, 14 Feb 2000 20:06:23 +0000 (20:06 +0000)
* gdk-pixbuf/gdk-pixbuf.h, gdk-pixbuf/gdk-pixbuf-data.c: Make passed-in argument 'const'.

gdk-pixbuf/ChangeLog
gdk-pixbuf/gdk-pixbuf-data.c
gdk-pixbuf/gdk-pixbuf.h

index 2fe762d87a72c42267b9be09c72cb82ec2c64599..38ee6d736c1ca609fd9ac2834ed35ef83f60c96b 100644 (file)
@@ -1,3 +1,6 @@
+2000-02-14  Elliot Lee  <sopwith@redhat.com>
+       * gdk-pixbuf/gdk-pixbuf.h, gdk-pixbuf/gdk-pixbuf-data.c: Make passed-in argument 'const'.
+
 2000-02-04  Michael Meeks  <mmeeks@gnu.org>
 
        * gdk-pixbuf/io-gif.c (struct _GifContext): add x,y_offset.
index 4c3bd361062d6cd2aa612cf0c46abbc4c318b261..247a67e4fdb1f62575dd6f4b9d7216496322b1bb 100644 (file)
@@ -43,7 +43,7 @@
  * 1.
  **/
 GdkPixbuf *
-gdk_pixbuf_new_from_data (guchar *data, ArtPixFormat format, gboolean has_alpha,
+gdk_pixbuf_new_from_data (const guchar *data, ArtPixFormat format, gboolean has_alpha,
                          int width, int height, int rowstride,
                          ArtDestroyNotify dfunc, gpointer dfunc_data)
 {
@@ -57,10 +57,10 @@ gdk_pixbuf_new_from_data (guchar *data, ArtPixFormat format, gboolean has_alpha,
        g_return_val_if_fail (height > 0, NULL);
 
        if (has_alpha)
-               art_pixbuf = art_pixbuf_new_rgba_dnotify (data, width, height, rowstride,
+               art_pixbuf = art_pixbuf_new_rgba_dnotify ((art_u8 *)data, width, height, rowstride,
                                                          dfunc_data, dfunc);
        else
-               art_pixbuf = art_pixbuf_new_rgb_dnotify (data, width, height, rowstride,
+               art_pixbuf = art_pixbuf_new_rgb_dnotify ((art_u8 *)data, width, height, rowstride,
                                                         dfunc_data, dfunc);
 
        g_assert (art_pixbuf != NULL);
index c3d053cf491860becfaa670e61c23091df3f5cb9..a5b4b2b3beb02d5204b520af70b5493a25382067 100644 (file)
@@ -111,7 +111,7 @@ GdkPixbuf *gdk_pixbuf_new (ArtPixFormat format, gboolean has_alpha, int bits_per
 
 GdkPixbuf *gdk_pixbuf_new_from_file (const char *filename);
 
-GdkPixbuf *gdk_pixbuf_new_from_data (guchar *data,
+GdkPixbuf *gdk_pixbuf_new_from_data (const guchar *data,
                                     ArtPixFormat format,
                                     gboolean has_alpha,
                                     int width, int height,